package com.atguigu.eduorder.otherModuleInterface;

import com.atguigu.commonutils.ordervo.CourseWebVoOrder;
import com.atguigu.eduorder.otherModuleInterface.exceptipon.EduClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Component
@FeignClient(name="service-edu",fallback = EduClientImpl.class)
public interface EduClient {

    //根据课程id，调用课程模块，从课程模块中获取课程信息
    @PostMapping("/eduservice/course/getCourseInfoOrder/{id}")
    public CourseWebVoOrder getCourseInfoOrder(@PathVariable("id") String id);
}
